import Request from './request.js'
let request = new Request().http

function get(url, data, header, hideLoading) {
    return request({
        url: url,
        method: 'GET',
        data: data,
        header: header,
        hideLoading
    })
}

function post(url, data, header,  hideLoading) {
    return request({
        url: url,
        method: 'POST',
        data: data,
        header: header,
        hideLoading: hideLoading,
    })
}

let api = {
    // https://api.ipify.org?format=json
    // GETIPADDRESS: (data) => get(`https://ipapi.co/json/`, '', {}),
	//获取所有证件照规格 status 1 为热门 0 普通 不传为所有
	selectDocumentsList:(data)=>get("/api/documents/selectDocumentsList",data),
	// 证件照接口制作
	genDocuments:(data)=>post("/api/documents/genDocuments",data),
	//查看所有服装
	selectPhotoList:()=>post("/api/documents/selectPhotoList"),
	//进行换装
	submitReloading:(data)=>post("/api/documents/idphotoChange",data),
	
	//根据接口返回相关key 跟下载地址
	downloadFileUrl:(data)=>get("/api/documents/downloadFileUrl",data),

	
	
	
}

export default api;